package com.microservice.base.mapper.hikcommon;

import com.microservice.base.entity.CHkRecords;
import com.microservice.base.entity.CPassThirdTrace;
import com.microservice.base.mapper.BaseMP;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author jbx
 * @package_name com.microservice.base.mapper
 * @create_date 2020/12/21 11:29
 */
public interface CHkRecordsMapper extends BaseMP<CHkRecords> {

  @Override
  void save(CHkRecords cHkRecords);

  @Override
  void saveBatch(List<CHkRecords> list);

  @Override
  void delete(String id);

  @Override
  void deleteBatch(String[] ids);

  @Override
  CHkRecords get(String id);

  @Override
  List<CHkRecords> queryAll();

  List<CHkRecords> queryAllByLimit();

  Map<String, Date> getMaxEndTime();

  void deleteBeforeThreeDays();

  List<CPassThirdTrace> getTraceBySyncFlag(int syncFlag);

  List<CHkRecords> getBySyncFlag(int syncFlag);
}
